package InitWebChrome;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class Init {

    private static  WebDriver webDriver;

    public static WebDriver getWebDriver(){
        if(webDriver==null){
            synchronized (Init.class){
                if(webDriver==null){
                    webDriver = new ChromeDriver();
                }
            }
        }
        return webDriver;
    }
}
